package com.diaohaiwen.basic.websockt.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


/**
 * @author 刁海文
 * @since 2022/4/11 15:29
 * @desc websocket 配置
 */
@EnableWebSocket
@Configuration
public class WebsocketConfig {


    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}

